.class public Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;
.super Lcom/estrongs/android/ui/base/HomeAsBackActivity;
.source "ThemeLayoutActivity.java"


# instance fields
.field private j:Landroid/widget/ImageView;

.field private k:Landroid/widget/ImageView;

.field private l:Landroid/widget/TextView;

.field private m:Landroid/widget/ImageView;

.field private n:Landroid/widget/ImageView;

.field private o:Landroid/widget/TextView;

.field private p:Lcom/estrongs/android/ui/theme/b;

.field private q:Z

.field private r:I

.field private s:Lcom/estrongs/android/ui/theme/a;

.field private t:I


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/ui/base/HomeAsBackActivity;-><init>()V

    return-void
.end method

.method private F()V
    .locals 2

    .line 1
    iget v0, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->t:I

    if-nez v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->s:Lcom/estrongs/android/ui/theme/a;

    const-string v1, "new"

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/a;->a(Ljava/lang/String;)Z

    move-result v0

    goto :goto_0

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->s:Lcom/estrongs/android/ui/theme/a;

    const-string v1, "old"

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/a;->a(Ljava/lang/String;)Z

    move-result v0

    :goto_0
    if-nez v0, :cond_1

    const v0, 0x7f110a80

    .line 4
    invoke-virtual {p0, v0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->g(I)V

    return-void

    .line 5
    :cond_1
    iget-boolean v0, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->q:Z

    if-eqz v0, :cond_2

    iget v0, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->r:I

    iget-object v1, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->p:Lcom/estrongs/android/ui/theme/b;

    invoke-virtual {v1}, Lcom/estrongs/android/ui/theme/b;->d()I

    move-result v1

    if-ne v0, v1, :cond_2

    const/4 v0, -0x1

    .line 6
    invoke-virtual {p0, v0}, Landroid/app/Activity;->setResult(I)V

    :cond_2
    return-void
.end method

.method private G()V
    .locals 3

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->q:Z

    if-eqz v0, :cond_0

    .line 2
    new-instance v0, Lcom/estrongs/android/ui/dialog/q$n;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    const v1, 0x7f110a70

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/dialog/q$n;->b(I)Lcom/estrongs/android/ui/dialog/q$n;

    const v1, 0x7f110a6c

    .line 3
    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/dialog/q$n;->a(I)Lcom/estrongs/android/ui/dialog/q$n;

    const v1, 0x7f11029e

    new-instance v2, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity$e;

    invoke-direct {v2, p0}, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity$e;-><init>(Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;)V

    .line 4
    invoke-virtual {v0, v1, v2}, Lcom/estrongs/android/ui/dialog/q$n;->b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    const v1, 0x7f110299

    new-instance v2, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity$d;

    invoke-direct {v2, p0}, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity$d;-><init>(Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;)V

    .line 5
    invoke-virtual {v0, v1, v2}, Lcom/estrongs/android/ui/dialog/q$n;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 6
    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q$n;->c()Lcom/estrongs/android/ui/dialog/q;

    goto :goto_0

    .line 7
    :cond_0
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    :goto_0
    return-void
.end method

.method private H()V
    .locals 4

    const v0, 0x7f090b8b

    .line 1
    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const v1, 0x7f090b8a

    .line 2
    invoke-virtual {p0, v1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    .line 3
    iget-object v2, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->s:Lcom/estrongs/android/ui/theme/a;

    invoke-virtual {v2}, Lcom/estrongs/android/ui/theme/a;->l()Z

    move-result v2

    const/16 v3, 0x8

    if-nez v2, :cond_0

    .line 4
    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    .line 5
    invoke-direct {p0, v1}, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->a(Landroid/view/View;)V

    .line 6
    :cond_0
    iget-object v2, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->s:Lcom/estrongs/android/ui/theme/a;

    invoke-virtual {v2}, Lcom/estrongs/android/ui/theme/a;->m()Z

    move-result v2

    if-nez v2, :cond_1

    .line 7
    invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V

    .line 8
    invoke-direct {p0, v0}, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->a(Landroid/view/View;)V

    .line 9
    :cond_1
    new-instance v0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity$a;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity$a;-><init>(Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;)V

    const v1, 0x7f090b89

    .line 10
    invoke-virtual {p0, v1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->k:Landroid/widget/ImageView;

    const v1, 0x7f090b88

    .line 11
    invoke-virtual {p0, v1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->j:Landroid/widget/ImageView;

    .line 12
    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 13
    iget-object v1, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->j:Landroid/widget/ImageView;

    new-instance v2, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity$b;

    invoke-direct {v2, p0}, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity$b;-><init>(Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;)V

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v1, 0x7f090b8d

    .line 14
    invoke-virtual {p0, v1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->l:Landroid/widget/TextView;

    const v1, 0x7f090b87

    .line 15
    invoke-virtual {p0, v1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->n:Landroid/widget/ImageView;

    const v1, 0x7f090b86

    .line 16
    invoke-virtual {p0, v1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->m:Landroid/widget/ImageView;

    .line 17
    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 18
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->m:Landroid/widget/ImageView;

    new-instance v1, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity$c;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity$c;-><init>(Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f090b8c

    .line 19
    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->o:Landroid/widget/TextView;

    return-void
.end method

.method private I()V
    .locals 5

    .line 1
    iget v0, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->t:I

    const v1, 0x7f0602d7

    const v2, 0x7f0602d6

    const/4 v3, 0x0

    const/16 v4, 0x8

    if-nez v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->n:Landroid/widget/ImageView;

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->k:Landroid/widget/ImageView;

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->o:Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    invoke-virtual {v3, v2}, Landroid/content/res/Resources;->getColorStateList(I)Landroid/content/res/ColorStateList;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->l:Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2, v1}, Landroid/content/res/Resources;->getColorStateList(I)Landroid/content/res/ColorStateList;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V

    goto :goto_0

    .line 6
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->k:Landroid/widget/ImageView;

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->n:Landroid/widget/ImageView;

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->l:Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    invoke-virtual {v3, v2}, Landroid/content/res/Resources;->getColorStateList(I)Landroid/content/res/ColorStateList;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->o:Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2, v1}, Landroid/content/res/Resources;->getColorStateList(I)Landroid/content/res/ColorStateList;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V

    :goto_0
    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->t:I

    return p0
.end method

.method static synthetic a(Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;I)I
    .locals 0

    .line 2
    iput p1, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->t:I

    return p1
.end method

.method private a(Landroid/view/View;)V
    .locals 2

    .line 4
    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v1, -0x2

    invoke-direct {v0, v1, v1}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v1, 0x9

    .line 5
    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    .line 6
    invoke-virtual {p1, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;Z)Z
    .locals 0

    .line 3
    iput-boolean p1, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->q:Z

    return p1
.end method

.method static synthetic b(Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->I()V

    return-void
.end method

.method static synthetic c(Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->F()V

    return-void
.end method


# virtual methods
.method protected D()Z
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    .line 1
    invoke-super {p0, p1}, Lcom/estrongs/android/ui/base/HomeAsBackActivity;->onCreate(Landroid/os/Bundle;)V

    const p1, 0x7f110a75

    .line 2
    invoke-virtual {p0, p1}, Landroid/app/Activity;->setTitle(I)V

    const p1, 0x7f0c031d

    .line 3
    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/base/HomeAsBackActivity;->setContentView(I)V

    .line 4
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    const/4 v0, -0x1

    const-string v1, "theme_data_index"

    invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result p1

    if-ne p1, v0, :cond_0

    .line 5
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void

    .line 6
    :cond_0
    iput p1, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->r:I

    .line 7
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->p:Lcom/estrongs/android/ui/theme/b;

    .line 8
    invoke-virtual {p1}, Lcom/estrongs/android/ui/theme/b;->j()Ljava/util/List;

    move-result-object p1

    if-nez p1, :cond_1

    .line 9
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void

    .line 10
    :cond_1
    iget v0, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->r:I

    invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/estrongs/android/ui/theme/a;

    iput-object p1, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->s:Lcom/estrongs/android/ui/theme/a;

    const/4 v0, 0x0

    .line 11
    iput-boolean v0, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->q:Z

    .line 12
    invoke-virtual {p1, p0}, Lcom/estrongs/android/ui/theme/a;->a(Landroid/content/Context;)Ljava/lang/String;

    move-result-object p1

    const-string v0, "new"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    xor-int/lit8 p1, p1, 0x1

    iput p1, p0, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->t:I

    .line 13
    invoke-direct {p0}, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->H()V

    .line 14
    invoke-direct {p0}, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->I()V

    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 1

    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->G()V

    const/4 p1, 0x1

    return p1

    .line 2
    :cond_0
    invoke-super {p0, p1, p2}, Landroidx/appcompat/app/AppCompatActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result p1

    return p1
.end method

.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
    .locals 2

    .line 1
    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v0

    const v1, 0x102002c

    if-ne v0, v1, :cond_0

    .line 2
    invoke-direct {p0}, Lcom/estrongs/android/ui/theme/ThemeLayoutActivity;->G()V

    const/4 p1, 0x1

    return p1

    .line 3
    :cond_0
    invoke-super {p0, p1}, Lcom/estrongs/android/ui/base/HomeAsBackActivity;->onOptionsItemSelected(Landroid/view/MenuItem;)Z

    move-result p1

    return p1
.end method
